import request from '@/utils/request'

// 查询橘事顺利艺术家代表作列表
export function listArtistsWorks(query) {
  return request({
    url: '/kiku/artistsWorks/list',
    method: 'get',
    params: query
  })
}

// 查询橘事顺利艺术家代表作详细
export function getArtistsWorks(id) {
  return request({
    url: '/kiku/artistsWorks/' + id,
    method: 'get'
  })
}

// 查询橘事顺利艺术家代表作详细根据艺术家ID
export function getArtistsMasterpiece(artistsId) {
  return request({
    url: '/kiku/artistsWorks/getArtistsMasterpiece/' + artistsId,
    method: 'get'
  })
}

// 新增橘事顺利艺术家代表作
export function addArtistsWorks(data) {
  return request({
    url: '/kiku/artistsWorks',
    method: 'post',
    data: data
  })
}

// 修改橘事顺利艺术家代表作
export function updateArtistsWorks(data) {
  return request({
    url: '/kiku/artistsWorks',
    method: 'put',
    data: data
  })
}

// 删除橘事顺利艺术家代表作
export function delArtistsWorks(id) {
  return request({
    url: '/kiku/artistsWorks/' + id,
    method: 'delete'
  })
}
